package cn.topcodes.tcsf.cms.domain.entity;

import cn.topcodes.tcsf.admin.commons.domain.IdEntity;
import lombok.Data;

import javax.persistence.Table;
import java.util.Date;

/**
 * 文章
 *
 * @author Unicorn
 * @date 2017-12-25 21:34:52
 */
@Data
@Table(name = "t_cms_article")
public class Article extends IdEntity {

    public static final String FIELD_TITLE = "title";

    public static final String FIELD_SUMMARY = "summary";

    public static final String FIELD_AUTHOR = "author";

    public static final String FIELD_IS_TOP = "isTop";

    public static final String FIELD_KEYWORD = "keyword";

    public static final String FIELD_CONTENT = "content";

    public static final String FIELD_CATALOG_ID = "catalogId";

    public static final String FIELD_SORT = "sort";

    public static final String FIELD_PV = "pv";

    public static final String FIELD_COVER_URL = "coverUrl";

    public static final String FIELD_IS_SHOW = "isShow";

    public static final String FIELD_IS_COMMENT = "isComment";


    /**
     * 标题
     */
    private String title;

    /**
     * 摘要
     */
    private String summary;

    /**
     * 作者
     */
    private String author;

    /**
     * 是否置顶
     */
    private Boolean isTop;

    /**
     * 关键词
     */
    private String keyword;

    /**
     * 文章内容
     */
    private String content;

    /**
     * 所属分类ID
     */
    private Long catalogId;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 浏览量
     */
    private Long pv;

    /**
     * 封面
     */
    private String coverUrl;

    /**
     * 是否展示
     */
    private Boolean isShow;

    /**
     * 是否开启评论
     */
    private Boolean isComment;
}